home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 2004 April
/
SGI IRIX 6.5 Applications 2004 April.iso
/
dist
/
appletalk.idb
/
usr
/
etc
/
appletalk
/
getdistiller.z
/
getdistiller
Wrap
Text File
|
2002-03-07
|
1KB
|
43 lines
#!/bin/csh -f
# @(#)getdistiller 10.1 99/10/14 Xinet, Inc.
# Copyright (c) 1998 by Xinet, Inc. All Rights Reserved.
# xkspool RIP script that finds Adobe PDF Distiller on local machine
#
if (-x /usr/bin/ps2pdf) then
set types = ("Full PDF with exact fonts" "Full PDF with substituted fonts"\
"Per-page PDF with exact fonts" "Per-page PDF, substituted fonts" )
set args = ( "" "-f" "-p" "-p -f" )
else if (-x /opt/Acrobat3/bin/distill) then
set types = ("PDF verison 2.1" "PDF Version 3.0" )
set args = ( "-compatlevel 2.1" "-compatlevel 3.0" )
else
exit 1
endif
if ($#argv > 0) then
if ("$1" == get) then
if ($#argv < 2) exit 1
set f = 1
while ($f <= $#types)
if ("$2" == "$types[$f]") then
echo /usr/etc/appletalk/print2pdf $args[$f]
exit 0
endif
@ f = $f + 1
end
exit 1
endif
if ("$1" == ppd) then
set ppd = /usr/adm/appletalk/ppds/DISTILLER.PPD
if (-r $ppd) echo $ppd
exit 0
endif
if ("$1" != list) exit 1
endif
set f = 1
while ($f <= $#types)
echo cmi\:$types[$f]
@ f = $f + 1
end
exit 0